<template>
  <div>充值成功，正在跳转。。。。</div>
</template>

<script>
export default {
  data() {
    return {
      code: this.$route.query.code,
    };
  },
  methods: {},
  mounted() {
    if (this.code == 200) {
      this.$message.info("充值成功");
      this.$router.push("/ShowExchange");
    } else {
      this.$message.info("充值失败");
      this.$router.push("/recharge");
    }
  },
};
</script>